home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Found / FWNotifn / Include / FWConnec.h next >
Encoding:
Text File  |  1995-11-08  |  1.5 KB  |  63 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWConnec.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    (c) 1993, 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWCONNEC_H
  11. #define FWCONNEC_H
  12.  
  13. #ifndef FWSTDDEF_H
  14. #include "FWStdDef.h"
  15. #endif
  16.  
  17. #if FW_LIB_EXPORT_PRAGMAS
  18. #pragma lib_export on
  19. #endif
  20.  
  21. //========================================================================================
  22. // Foward declarations
  23. //========================================================================================
  24.  
  25. class FW_CLASS_ATTR FW_CInterest;
  26. class FW_CLASS_ATTR FW_CNotification;
  27.  
  28. //========================================================================================
  29. // CLASS FW_CConnection
  30. //========================================================================================
  31.  
  32. class FW_CLASS_ATTR FW_CConnection
  33. {
  34. public:
  35.                         FW_CConnection();\
  36.     virtual            ~FW_CConnection();
  37.             
  38.     virtual void        RemoveAllInterests() = 0;
  39.     virtual void        RemoveInterest(const FW_CInterest& interest) = 0;
  40.     
  41.     virtual void        Notify(const FW_CNotification& notification,
  42.                                const FW_CInterest& interest) = 0;
  43.                                
  44.     virtual void        Connect();
  45.     virtual void        Disconnect();
  46.     
  47.     FW_Boolean            IsConnected() const;
  48.  
  49. private:
  50.     FW_Boolean            fIsConnected;
  51. };
  52.  
  53. inline FW_Boolean FW_CConnection::IsConnected() const
  54. {
  55.     return fIsConnected;
  56. }
  57.  
  58. #if FW_LIB_EXPORT_PRAGMAS
  59. #pragma lib_export off
  60. #endif
  61.  
  62. #endif
  63.